﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdsAdd.aspx.cs" Inherits="FYPHP.AdvertisementAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div style="margin: 0 auto; width: 722px">
    <table border="1" cellpadding="10" cellspacing="10" style="width: 722px; border-collapse: collapse; border-color: #aaaaaa;">
    <tr>
    <td colspan="2" style="font-size: 14px; text-align: center; background-color: #eee; color: #555555"><strong>Upload 
        New Advertisement</strong></td>
    </tr>
    <tr>
    <td class="style1">Advertisement Link :</td><td width="480px">
        http://<asp:TextBox ID="txtLink" runat="server"></asp:TextBox>
        <span style="font-size:11px"><i>(Enter # if link does not present.)</i></span><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="txtLink" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
    <td class="style1">Duration :</td><td width="480px">
        <asp:TextBox ID="txtDuration" runat="server"></asp:TextBox> day(s)&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="txtDuration" ErrorMessage="*" ForeColor="Red"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
    <td valign="top" class="style1">Advertisement Image :</td>
    <td><asp:FileUpload id="FileUpload1"                 
           runat="server">
       </asp:FileUpload>

        <asp:Button id="UploadButton" Text="Upload file" OnClick="UploadButton_Click" runat="server">
       </asp:Button>    
       &nbsp;<br />
        <asp:Label id="UploadStatusLabel" runat="server">
       </asp:Label>
        <asp:Label ID="imgName" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
    <td colspan="2" style="text-align: center;">
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
            onclick="btnSubmit_Click" />
&nbsp;<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
        </td>
    </tr>
    </table>
       

       
              
    </div>
</asp:Content>
